#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main()
{
	char arr[1000] = { 0 };
	scanf("%s", &arr);
	int x = strlen(arr);
	for (int i = x - 1; i >= 0; i--)
	{
		printf("%c", arr[i]);
	}
	return 0;
}

















